package com.hzhr.iot.device.dao.mapper.custom;

import com.hzhr.iot.device.entity.DeviceMaintenanceCardEntity;
import com.hzhr.iot.device.entity.ext.DeviceMaintenanceCardEntityExt;
import com.hzhr.iot.device.queryModel.custom.DeviceMaintenanceCardCustomQueryModel;

import java.util.List;

public interface DeviceMaintenanceCardEntityCustomMapper {
    //批量新增
    int insertBatch(List<DeviceMaintenanceCardEntity> recordList);
    //批量更新
    int updateBatch(List<DeviceMaintenanceCardEntity> recordList);
    //批量更新
    int updateBatchSelective(List<DeviceMaintenanceCardEntity> recordList);
    //通用查询
    List<DeviceMaintenanceCardEntityExt> selectExt(DeviceMaintenanceCardCustomQueryModel queryModel);
    //通用查询数量
    int selectCount(DeviceMaintenanceCardCustomQueryModel queryModel);
    //通用修改属性
    int updateProps(DeviceMaintenanceCardCustomQueryModel queryModel);
    //通用删除
    int delete(DeviceMaintenanceCardCustomQueryModel queryModel);

    //自定义查询
    List<DeviceMaintenanceCardEntityExt> selectExt1(DeviceMaintenanceCardCustomQueryModel queryModel); //or查询 详见map.xml文件

}
